package com.anti.modular.bus.roomreservation.service;

import com.anti.jdbc.support.page.PageParam;
import com.anti.jdbc.support.page.PageResult;
import com.anti.modular.bus.roomreservation.entity.RoomReservation;
import com.anti.modular.bus.roomreservation.param.RoomReservationParam;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * 房间预定service接口
 *
 * @author anti
 * @date 2021-04-23 09:43:48
 */
public interface RoomReservationService{

    /**
    * 根据主键查询实体
    */
    RoomReservation getById(RoomReservationParam roomReservationParam);

    RoomReservation getReservationById(Long id);

    /**
     * 查询房间预定
     *
     * @author anti
     * @date 2021-04-23 09:43:48
     */
    PageResult page(PageParam pageParam,RoomReservationParam roomReservationParam);

    /**
     * 房间预定列表
     *
     * @author anti
     * @date 2021-04-23 09:43:48
     */
    List<RoomReservation> list(RoomReservationParam roomReservationParam);

    /**
     * 添加房间预定
     *
     * @author anti
     * @date 2021-04-23 09:43:48
     */
    void add(RoomReservationParam roomReservationParam);

    /**
     * 删除房间预定
     *
     * @author anti
     * @date 2021-04-23 09:43:48
     */
    void delete(RoomReservationParam roomReservationParam);

    void deleteAllSelect( List<Long> roomReservationParam);

    /**
     * 编辑房间预定
     *
     * @author anti
     * @date 2021-04-23 09:43:48
     */
    void edit(RoomReservationParam roomReservationParam);

    void editQxyd(RoomReservationParam roomReservationParam);

    /**
     * 查看房间预定
     *
     * @author anti
     * @date 2021-04-23 09:43:48
     */
     RoomReservation detail(RoomReservationParam roomReservationParam);

}
